﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CastleOfTheDisillusioned.Location.Maps.Prison {
	class StartingArea : Cell {
		public StartingArea(double X, double Y) {
			this.X = X;
			this.Y = Y;
			this.Width = CellWidth;
			this.Height = CellHeight;

			this.AddTileOutline(X, Y, (int)Width, (int)Height);

			Node Outside = new Node(0, CellHeight - 3, this, Direction.Left);
			this.AddNode(Outside);
			Outside.Taken = true; //Make sure not to link the node we just added

			this.AddRightNode(Width - 1, CellHeight - 3);

			this.AddEntity(new Portal(0, CellHeight - 4, 1, 3, OnExit.Explored));
		}
	}
}
